<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('shopin.index.index');
});

//后台
Route::get('/admin/index', "Admin\IndexController@index");
// Route::get('/admin/index', "Admin\IndexController@admin");

//用户管理
Route::get('/admin/user/add', 'Admin\UserController@add');
Route::post('/admin/user/insert', 'Admin\UserController@insert');
Route::get('/admin/user/index', 'Admin\UserController@index');
Route::post('/admin/user/ajaxStatus', 'Admin\UserController@ajaxStatus');
Route::post('/admin/user/ajaxName', 'Admin\UserController@ajaxName');
Route::get('/admin/user/edit/{id}', 'Admin\UserController@edit');
Route::post('/admin/user/update', 'Admin\UserController@update');
Route::get('/admin/user/delete/{id}', 'Admin\UserController@delete');

//分类管理
Route::resource('/admin/category', 'Admin\CategoryController');


//订单管理
Route::get('/admin/order/manage', 'Admin\OrderController@manage');//订单查询列表 已完成	
// Route::get('/admin/order/orders', 'Admin\OrderController@orders');//订单编辑  未完成
Route::get('/admin/order/manage/{id}/out', 'Admin\OrderController@out');//订单移出  未完成